<!DOCTYPE html>
<!--引入thymeleaf的标签-->
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<!--引入头部模板片段-->
<div th:replace="~{/test/common::header}"></div>

<h3>夜未眠</h3>

<!--引入尾部模板片段-->
<div th:replace="~{/test/common::footer}"></div>
</body>
</html>